#!/bin/bash
find . -type f -name "*.mp3" | while read file; do
    ffmpeg -i $file -f s16le -ar 24000 -ac 1 $file.pcm
    ffmpeg -i $file -ar 24000 $file.wav
done